using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using FITHOU.DO;
using FITHOU.BL;

namespace FITHOU.FormDesign
{
    public partial class frTuDienTV : DevExpress.XtraEditors.XtraForm
    {
        public frTuDienTV()
        {
            InitializeComponent();
        }

        private void btDich_Click(object sender, EventArgs e)
        {
            string s = txtTV.Text;
            tbl_TuDienDO objTuDien = new tbl_TuDienBL().SelectTV(new tbl_TuDienDO { TV = s });
            if (objTuDien.TA == null)
            {
                txtTA.Text = "Not found";
            }
            else
            {
                txtTA.Text = objTuDien.TA.ToString();
            }
        }

        private void frTuDienTV_Load(object sender, EventArgs e)
        {

        }
    }
}